package com.by.service.Impl;

import com.by.bean.ProductCategory;
import com.by.common.crud.BaseServiceImpl;
import com.by.mapper.ProductCategoryMapper;
import com.by.service.ProductCategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductCategoryServiceImpl extends BaseServiceImpl<ProductCategory, ProductCategoryMapper> implements ProductCategoryService {

    @Override
    public List<ProductCategory> queryAll() {
        return baseMapper.queryChild(0);
    }
}
